package cn.sicnu.cs.employment.mapper;

import cn.sicnu.cs.employment.domain.entity.BgAppeal;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.List;
@Mapper
public interface BgAppealMapper extends BaseMapper<BgAppeal> {

    List<BgAppeal> getAppealsByCom(@Param("comId") Long comId,
                                      @Param("type") Integer type,
                                      @Param("status") Integer status,
                                   @Param("start") String start,
                                   @Param("end") String end);

    void setIsAppealFalse(@Param("id") Long id);

    List<BgAppeal> getAppealsByEmp(@Param("empId") Long empId,
                                   @Param("type") Integer type,
                                   @Param("status") Integer status,
                                   @Param("start") String start,
                                   @Param("end") String end);
}
